#include "Bounding.h"
#include "Projectile.h"
#include "Room.h"
#include "Random.h"
#include "Timer.h"
#include "VBO.h"
#include "Partitioning.h"
#include <vector>

enum BallState { ENEMY = 0, HEALTH };

class Ball : public BSphere
{
	VBO vbo_high, vbo_med, vbo_low;

public:
	Ball(float radius);
	vec3 dir;
	Room *theRoom;
	void Draw(void);
	void Update(float delta);
	BallState ballstate;
	bool bDoCollide;
	int prevTime;
	float speed;
};

class BallManager : public Node
{
public:
	vector<Ball*> theBalls;
	Room *theRoom;
	int BallsCollideTimer;

	BallManager(Room *TheRoom, int Amount, float speed);
	void Update(float delta);
};